package org.uninova.mobis.pojos;

import java.sql.Timestamp;

/**
 * ResihopTrip POJO
 * @author PAF
 */
public class ResihopTrip {
	
	private int tripId ;			// The Resihop.nu unique Id for this trip
	private Coordinate fromCoord ;	// The coordinate of the origin
	private Coordinate toCoord ;	// The coordinate of the destination
	private Timestamp when ;		// The time of departure
	private boolean gotCar ;		// 1 = The user has its own car; 0 = The user is looking for a ride
	private String details ;		// The details for this trip
	private Timestamp inserted ;	// The time of insertion/creation of the trip
	private String name ;			// The user's name
	private String email ;			// The user's email
	private String phone ;			// The user's phone number
	private String from ;			// The origin address
	private String to ;				// The destination address
	private String code ;			// The Resihop.nu unique code for this trip
	
	
	/**
	 * ResihopTrip Class Constructors
	 */
	public ResihopTrip() {}
	
	public ResihopTrip(String from, String to, Timestamp when, boolean gotCar, String details, String name, String email, String phone) {
		this.from = from ;
		this.to = to ;
		this.when = when ;
		this.gotCar = gotCar ;
		this.details = details ;
		this.name = name ;
		this.email = email ;
		this.phone = phone ;
	}

	public int getTripId() {
		return tripId;
	}

	public void setTripId(int tripId) {
		this.tripId = tripId;
	}

	public Coordinate getFromCoord() {
		return fromCoord;
	}

	public void setFromCoord(Coordinate fromCoord) {
		this.fromCoord = fromCoord;
	}

	public Coordinate getToCoord() {
		return toCoord;
	}

	public void setToCoord(Coordinate toCoord) {
		this.toCoord = toCoord;
	}

	public Timestamp getWhen() {
		return when;
	}

	public void setWhen(Timestamp when) {
		this.when = when;
	}

	public boolean isGotCar() {
		return gotCar;
	}

	public void setGotCar(boolean gotCar) {
		this.gotCar = gotCar;
	}

	public String getDetails() {
		return details;
	}

	public void setDetails(String details) {
		this.details = details;
	}

	public Timestamp getInserted() {
		return inserted;
	}

	public void setInserted(Timestamp inserted) {
		this.inserted = inserted;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getFrom() {
		return from;
	}

	public void setFrom(String from) {
		this.from = from;
	}

	public String getTo() {
		return to;
	}

	public void setTo(String to) {
		this.to = to;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}
	
	
}
